From: Glenn Morris Date: Thu, 18 Mar 2010 06:44:36 +0000 (-0700) Subject: Use query-replace-{from,to}-history-variable in more places. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~8362 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d07cd8ecd7c0d17568b08a46a05b7abef34767f9;p=emacs.git Use query-replace-{from,to}-history-variable in more places. * replace.el (query-replace-history): Give it a doc string. (map-query-replace-regexp): Use query-replace-from-history-variable and query-replace-to-history-variable. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3813bdb4462..1c91a44bbc8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2010-03-18 Glenn Morris + * replace.el (query-replace-history): Give it a doc string. + (map-query-replace-regexp): Use query-replace-from-history-variable + and query-replace-to-history-variable. + * mail/hashcash.el (declare-function): Remove duplicate definition. * mail/emacsbug.el (report-emacs-bug-pretest-address): diff --git a/lisp/replace.el b/lisp/replace.el index 57b29442605..92edd2e2657 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -33,7 +33,10 @@ :type 'boolean :group 'matching) -(defvar query-replace-history nil) +(defvar query-replace-history nil + "Default history list for query-replace commands. +See `query-replace-from-history-variable' and +`query-replace-to-history-variable'.") (defvar query-replace-defaults nil "Default values of FROM-STRING and TO-STRING for `query-replace'. @@ -394,12 +397,13 @@ Fourth and fifth arg START and END specify the region to operate on." (car regexp-search-ring) (read-from-minibuffer "Map query replace (regexp): " nil nil nil - 'query-replace-history nil t))) + query-replace-from-history-variable + nil t))) (to (read-from-minibuffer (format "Query replace %s with (space-separated strings): " (query-replace-descr from)) nil nil nil - 'query-replace-history from t))) + query-replace-to-history-variable from t))) (list from to (and current-prefix-arg (prefix-numeric-value current-prefix-arg))